package com.shiguiwu.springmybatis.spring.event.spring;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @description: 时间
 * @author: stone
 * @date: Created by 2021/4/24 22:26
 * @version: 1.0.0
 * @pakeage: com.shiguiwu.springmybatis.spring.event.spring
 */
public class SpringEventTests {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();
        context.register(EventConfig.class);
        context.refresh();

        UserRegisterService bean = context.getBean(UserRegisterService.class);
        bean.register("石贵武");

    }
}
